<?php
		session_start();
		
        require_once 'librarys/funs/class_user.php';
        $t= new tin();
       	$lang='vi';
		if(isset($_COOKIE["lang"])) $lang=$_COOKIE["lang"];
   		else if(isset($_SESSION["lang"])) $lang=$_SESSION["lang"];
		
        $view='';
        $idseo=-1;
        if(isset ($_GET['view'])) $view=$_GET['view'];
		include("duongdan.php");
		$rooturl="http://".$_SERVER['SERVER_NAME']."".$duongdan;
		$a=$_GET['a'];
		if(isset($_GET['b'])) $b=$_GET['b']; 
		$b=explode("-",$b);
		$bb=$b[count($b)-1];
		if(isset($_GET['c'])) $c=$_GET['c']; 
		$c=explode("-",$c);
		$cc=$c[count($c)-1];
		if(isset($_GET['d'])) $d=$_GET['d']; 
		$d=explode("-",$d);
		$dd=$d[count($d)-1];
		if(isset($_GET['e'])) $e=$_GET['e']; 
		$e=explode("-",$e);
		$ee=$e[count($e)-1];
		if(isset($_GET['f'])) $f=$_GET['f']; 
		$f=explode("-",$f);
		$ff=$f[count($f)-1];
		$res = $t->get_by_thutu('seo',-1,-1," and alias='$a'");	
		$row = mysql_fetch_array($res);
		$idseo=$row['id'];
		
		$seo1=$t->get_by_thutu('seo');
		while($row=mysql_fetch_array($seo1)){
		$list[$row["id"]]=$row;
    	}
        require_once 'librarys/funs/seo_tour.php';
        $seo_tour1 = new seo_tour();
        $seo1=$seo_tour1->seo($idseo,$bb,$lang,$cc,$dd,$ee,$ff);
		$t->LuuThongTin();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link href="" rel="shortcut icon">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="content-language" content ="vi" />
        <meta name="robots" content="INDEX, FOLLOW" />
        <meta content="<?=$seo1['keyword']; ?>" name="keywords">
        <meta content="<?=$seo1['description']; ?>" name="description">
        <title>.:<?=$seo1['title']; ?>:.</title>
        <base href="<?=$rooturl;?>"  />
        
        <? include("librarys/incs/head.php"); ?>
    </head>
    <body>
    	
		<script>
			window.location="<?=$rooturl?><?=$list['1']['alias'];?>.html";
		</script>
       
    
    </body>
</html>